package com.jiyun.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jiyun.mapper.ZlDoctorMapper;
import com.jiyun.model.information.ZlDoctor;
import com.jiyun.service.IZlDoctorService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author
 * @since 2024-09-22
 */
@Service
@Slf4j
public class ZlDoctorServiceImpl extends ServiceImpl<ZlDoctorMapper, ZlDoctor> implements IZlDoctorService {
    @Autowired
    private ZlDoctorMapper zlDoctorMapper;


    @Override
    public IPage<ZlDoctor> findPage(Integer pn, Integer ps, ZlDoctor doctor) {
        Page<ZlDoctor> page = new Page<>(pn,ps);
        return zlDoctorMapper.findPage(page,doctor);
    }
}
